//   Copyright 2012,2013 Vaughn Vernon
//
//   Licensed under the Apache License, Version 2.0 (the "License");
//   you may not use this file except in compliance with the License.
//   You may obtain a copy of the License at
//
//       http://www.apache.org/licenses/LICENSE-2.0
//
//   Unless required by applicable law or agreed to in writing, software
//   distributed under the License is distributed on an "AS IS" BASIS,
//   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
//   See the License for the specific language governing permissions and
//   limitations under the License.

package com.saasovation.agilepm.application.team;

import java.util.Date;

/**
 * 更改团队成员电子邮件地址命令
 * @author learn
 */
public class ChangeTeamMemberEmailAddressCommand {

    /**
     * 租户ID
     */
    private String tenantId;
    /**
     * 用户名
     */
    private String username;
    /**
     * 邮件地址
     */
    private String emailAddress;
    /**
     * 发生日期
     */
    private Date occurredOn;

    /**
     * 由以下参数构造 更改团队成员电子邮件地址命令
     * @param tenantId              租户ID
     * @param username              用户名
     * @param emailAddress          邮件地址
     * @param occurredOn            发生日期
     */
    public ChangeTeamMemberEmailAddressCommand(String tenantId, String username, String emailAddress, Date occurredOn) {
        super();
        this.tenantId = tenantId;
        this.username = username;
        this.emailAddress = emailAddress;
        this.occurredOn = occurredOn;
    }

    /**
     * 默认构造器
     */
    public ChangeTeamMemberEmailAddressCommand() {
        super();
    }

    /**
     * 获取租户ID
     * @return                      返回字符串
     */
    public String getTenantId() {
        return tenantId;
    }

    /**
     * 设置租户ID
     * @param tenantId              租户ID
     */
    public void setTenantId(String tenantId) {
        this.tenantId = tenantId;
    }

    /**
     * 获取用户名
     * @return                      返回字符串
     */
    public String getUsername() {
        return username;
    }

    /**
     * 设置用户名
     * @param username              用户名
     */
    public void setUsername(String username) {
        this.username = username;
    }

    /**
     * 获取邮件地址
     * @return                      返回字符串
     */
    public String getEmailAddress() {
        return emailAddress;
    }

    /**
     * 设置邮件地址
     * @param emailAddress          邮件地址
     */
    public void setEmailAddress(String emailAddress) {
        this.emailAddress = emailAddress;
    }

    /**
     * 获取发生日期
     * @return                      返回日期
     */
    public Date getOccurredOn() {
        return occurredOn;
    }

    /**
     * 设置发生日期
     * @param occurredOn            发生日期
     */
    public void setOccurredOn(Date occurredOn) {
        this.occurredOn = occurredOn;
    }
}
